package com.peas.platform.module.icims.base.auth.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.base.auth.adapter.repository.RolePermissionRepository;
import com.peas.platform.module.icims.base.auth.adapter.repository.po.RolePermissionPo;
import com.peas.platform.module.icims.base.auth.domain.RolePermissionDomain;
import com.peas.platform.module.icims.base.auth.dto.RolePermissionDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class RolePermissionDomainImpl extends BaseDomainImpl<RolePermissionDto, RolePermissionPo> implements RolePermissionDomain {

    @Resource
    private RolePermissionRepository rolePermissionRepository;

    @Override
    public BaseRepository<RolePermissionPo> getMapper() {
        return rolePermissionRepository;
    }

    @Override
    public Class<? extends BaseRepository<RolePermissionPo>> getRepositoryClass() {
        return RolePermissionRepository.class;
    }

}
